ci: speed up Windows jobs by trimming the msys2 install - #354
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #354 +/- ##
=======================================
Coverage 72.12% 72.12%
=======================================
Files 233 233
Lines 6135 6135
Branches 1607 1607
=======================================
Hits 4425 4425
Misses 1417 1417
Partials 293 293 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The msys2 package cache is already enabled by default and hits, but the slow part of the Windows jobs is pacman *extracting* the installed packages, which the cache does not avoid: on the windows-11-arm runner the install step alone took ~3.5 min installing base-devel and the full toolchain meta-package. Install only what openlibm builds with — make plus a C compiler. The -gcc packages pull in binutils and the runtime, so mingw64/mingw32/ucrt64 drop base-devel and the toolchain meta entirely. The clang environments keep their toolchain meta (no standalone binutils package provides ar), but still drop base-devel. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ViralBShah
force-pushed
the
ci-windows-faster
branch
from
June 22, 2026 23:33
e840dac to
6b3af82
Compare
mingw-w64-clang-*-clang requires lld and llvm-tools (which provides ar), so it is a complete toolchain by itself. Drop the clang -toolchain meta (lldb/openmp/flang/... are unused) to cut the slow windows-11-arm setup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows jobs are slow in setup, not build. On the windows-11-arm
clangarm64job the steps were:The msys2 package cache is already enabled by default and hits (the log shows a 1.5 GB cache restore). The cost that remains is
pacmanextracting/installing the packages — ~3.5 min — which caching cannot avoid. We were installingbase-devel(≈150 packages: autotools, perl, …) plus the fullmingw-w64-*-toolchainmeta.This installs only what the build uses:
make+ a C compiler.mingw-w64-<env>-gccpulls in binutils + runtime, so they drop bothbase-develand the toolchain meta.ar/lld), but still dropbase-devel.Validated by the Windows CI on this PR (build +
make testgreen on all five environments).